<?php
// +-------------------------------------------------------------------------------
// | DingZone [ A Rapid Development Framework For Dingtalk ]
// +-------------------------------------------------------------------------------
// | DebugController.php v1.0
// |
// | Copyright (c) 2014-2018 http://www.heimalanshi.com All rights reserved.
// | Author : Jie
// | Date : 2018/11/1
// +-------------------------------------------------------------------------------

namespace app\core\controller\enterprise;

/**
 * debug模式开启与关闭（主要是方便调试）
 *
 * @package app\core\controller\enterprise
 */
class DebugController extends EnterpriseBaseController {

    public function open() {
        session(SESSION_OPEN_DEBUG, true);
        $this->success("调试模式开启成功");
    }
    
    public function close() {
        session(SESSION_OPEN_DEBUG, null);
        $this->success("调试模式已关闭");
    }
}